﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO.Ports;
using CommunityToolkit.Mvvm.Input;
using System.Collections.ObjectModel;
using MultiCommunication.ViewModels;
using System.Windows;
using NLog;
using System.Windows.Markup;
using MultiCommunication.Models;

namespace MultiCommunication.ViewModels
{
    public partial class SerialPortViewModel:ObservableObject
    {
        [ObservableProperty]
        public PortViewModel _PortAViewModel;

        [ObservableProperty]
        public PortViewModel _PortBViewModel;

        public List<PortViewModel> _PortViewModels = new List<PortViewModel> 
        {
            new PortViewModel(),
            new PortViewModel()
        };
        public SerialPortViewModel()
        {
            PortAViewModel = _PortViewModels[0];
            PortBViewModel = _PortViewModels[1];
        }
    }

}
